package cn.edu.zafu.bigdata.Wym;

public class Wym_Rectangle extends Wym_Shape{

    private double length;
    private double width;

    public Wym_Rectangle(double length, double width){
        this.length=length;
        this.width=width;
    }

    @Override
    public double area() {
        return length*width;
    }

    @Override
    public double perimeter() {
        return 2*length+2*width;
    }
}
